package com.kkb.kkbportal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(value = "UserLikeStore对象", description = "点赞表：用户给评论点赞")
@Data
@EqualsAndHashCode(callSuper = false)
public class UserLikeScore implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "点赞主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "用户id/点赞人id")
    private Long userId;

    @ApiModelProperty(value = "被点赞评论id")
    private Long scoreId;

    @ApiModelProperty(value = "点赞状态 0:未点赞/取消点赞 1:已点赞")
    private Boolean liked;

}
